﻿using System.Collections.Generic;

namespace WeWork.Entitys.Send
{
    /// <summary>
    /// 填表消息
    /// </summary>
    public class ChatCollect : ChatSend
    {
        public ChatCollectInfo collect { get; set; }
    }
    public class ChatCollectInfo
    {
        /// <summary>
        /// 填表消息所在的群名称。String类型
        /// </summary>
        public string room_name { get; set; } = string.Empty;

        /// <summary>
        /// 创建者在群中的名字。String类型
        /// </summary>
        public string creator { get; set; } = string.Empty;

        /// <summary>
        /// 创建的时间。String类型
        /// </summary>
        public string create_time { get; set; } = string.Empty;

        /// <summary>
        /// 表名。String类型
        /// </summary>
        public string title { get; set; } = string.Empty;

        /// <summary>
        /// 表内容。json数组类型
        /// </summary>
        public List<ChatCollectDetail> details { get; set; }
    }

    public class ChatCollectDetail
    {
        /// <summary>
        /// 表项id。Uint64类型
        /// </summary>
        public long id { get; set; }

        /// <summary>
        /// 表项名称。String类型
        /// </summary>
        public string ques { get; set; } = string.Empty;

        /// <summary>
        /// 表项类型，有Text(文本),Number(数字),Date(日期),Time(时间)。String类型
        /// </summary>
        public string type { get; set; } = string.Empty;
    }
}
